package com.sikaryofficial.gateway.config;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @author qinjinyuan
 * 功能：配置信息
 * 时间：2023/11/30 20:20
 */

@Setter
@Getter
@ToString
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "hismk.gateway.ratelimit")
public class RateLimitProperties {

    private Integer maxRequestsPerSecond;
    /**
     * 3秒内请求2次
     */
    private Integer expirationTime;

}
